﻿using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using Akso.Bills.Dto;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Akso.Web.Areas.FinanceModule.Models.Bills
{
    public class BillsViewModel
    {
        public string FilterText { get; set; }
    }
    /// <summary>
    /// 在弹出的新增、修改窗口里面，传递给页面的ViewModel对象。
    /// </summary>
    [AutoMapFrom(typeof(GetBillForEditOutput))]
    public class CreateOrEditIncomeModalViewModel: GetBillForEditOutput
    {
        public bool IsEditMode
        {
            get { return Bill.Id.HasValue; }
        }
        /// <summary>
        /// 学校列表
        /// </summary>
        public List<ComboboxItemDto> GetSchoolList { get; set; }
        /// <summary>
        /// 收支分类列表
        /// </summary>
        public List<ComboboxItemDto> GetIETypeList { get; set; }
        /// <summary>
        /// 获取账单账户
        /// </summary>
        public List<ComboboxItemDto> GetAccountList { get; set; }
        /// <summary>
        /// 辅助项目
        /// </summary>
        public List<ComboboxItemDto> GetCheckProjectList { get; set; }
        /// <summary>
        /// 辅助客户
        /// </summary>
        public List<ComboboxItemDto> GetCheckCustomerList { get; set; }
        /// <summary>
        /// 辅助人员
        /// </summary>
        public List<ComboboxItemDto> GetCheckStaffList { get; set; }
        public CreateOrEditIncomeModalViewModel(GetBillForEditOutput output)
        {
            output.MapTo(this);
        }
    }
}